package com.ecoolex.hotel.saas.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class PresaleCouponOrderAfterSalesRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public PresaleCouponOrderAfterSalesRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public PresaleCouponOrderAfterSalesRecordExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public PresaleCouponOrderAfterSalesRecordExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        PresaleCouponOrderAfterSalesRecordExample example = new PresaleCouponOrderAfterSalesRecordExample();
        return example.createCriteria();
    }

    public PresaleCouponOrderAfterSalesRecordExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public PresaleCouponOrderAfterSalesRecordExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public PresaleCouponOrderAfterSalesRecordExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public PresaleCouponOrderAfterSalesRecordExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public PresaleCouponOrderAfterSalesRecordExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecordIdIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.RecordId is null");
            return (Criteria) this;
        }

        public Criteria andRecordIdIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.RecordId is not null");
            return (Criteria) this;
        }

        public Criteria andRecordIdEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId =", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.RecordId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRecordIdNotEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId <>", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.RecordId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId >", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.RecordId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId >=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.RecordId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId <", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.RecordId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId <=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.RecordId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRecordIdIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId not in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.RecordId not between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId is null");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId is not null");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId =", value, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.AfterSalesId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdNotEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId <>", value, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.AfterSalesId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdGreaterThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId >", value, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.AfterSalesId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId >=", value, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.AfterSalesId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdLessThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId <", value, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.AfterSalesId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId <=", value, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.AfterSalesId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId in", values, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdNotIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId not in", values, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId between", value1, value2, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andAfterSalesIdNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.AfterSalesId not between", value1, value2, "afterSalesId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.OrderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.OrderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.OrderId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.OrderId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.OrderId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.OrderId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.OrderId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.OrderId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.OrderId not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andContentTypeIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.ContentType is null");
            return (Criteria) this;
        }

        public Criteria andContentTypeIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.ContentType is not null");
            return (Criteria) this;
        }

        public Criteria andContentTypeEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType =", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.ContentType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentTypeNotEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType <>", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.ContentType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentTypeGreaterThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType >", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.ContentType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType >=", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.ContentType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentTypeLessThan(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType <", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.ContentType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentTypeLessThanOrEqualTo(Integer value) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType <=", value, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.ContentType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentTypeIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType in", values, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotIn(List<Integer> values) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType not in", values, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType between", value1, value2, "contentType");
            return (Criteria) this;
        }

        public Criteria andContentTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("presalecouponorderaftersalesrecord.ContentType not between", value1, value2, "contentType");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.Remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.Remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Remark = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Remark <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Remark > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Remark >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Remark < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Remark <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.Remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.Remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.Remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.Remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.Remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage is null");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage is not null");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage =", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.EvidenceImage = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEvidenceImageNotEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage <>", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.EvidenceImage <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEvidenceImageGreaterThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage >", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.EvidenceImage > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEvidenceImageGreaterThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage >=", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.EvidenceImage >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEvidenceImageLessThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage <", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.EvidenceImage < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEvidenceImageLessThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage <=", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.EvidenceImage <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEvidenceImageLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage like", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageNotLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage not like", value, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage in", values, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageNotIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage not in", values, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage between", value1, value2, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andEvidenceImageNotBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.EvidenceImage not between", value1, value2, "evidenceImage");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("presalecouponorderaftersalesrecord.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("presalecouponorderaftersalesrecord.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(PresaleCouponOrderAfterSalesRecord.Column column) {
            addCriterion(new StringBuilder("presalecouponorderaftersalesrecord.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("presalecouponorderaftersalesrecord.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private PresaleCouponOrderAfterSalesRecordExample example;

        protected Criteria(PresaleCouponOrderAfterSalesRecordExample example) {
            super();
            this.example = example;
        }

        public PresaleCouponOrderAfterSalesRecordExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(PresaleCouponOrderAfterSalesRecord.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(PresaleCouponOrderAfterSalesRecord.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.hotel.saas.entity.PresaleCouponOrderAfterSalesRecordExample example);
    }
}